<?php

namespace app\common\validate;

use app\common\validate\Base;
class Level extends Base
{

    protected $rule = [
        'id|等级ID' => 'require|integer', 
        'level_name|等级名称' => 'require',
        'amount|金额' => 'require|number|egt:1000',
        'score|产生业绩' => 'require|number',
    ];

    protected $message = [

    ];

    protected $scene = [
        // 新增会员等级
        'manage_add' => ['level_name','amount','score'],
        // 编辑会员等级
        'manage_edit' => ['id','level_name','score'],
        // 删除会员等级
        'manage_del' => ['id'],
    ];

    /**
     * 
     * @param  [type] $v    [description]
     * @param  [type] $rule [description]
     * @param  [type] $data [description]
     * @return [type]       [description]
     */
    protected function checkData($v,$rule,$data){
        
    }

}